package com.qishon.uic.login;

import com.qishon.uic.domain.application.AccountManager;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * Created by myname on 2017/1/23.
 */
@Controller
public class PortalController {
    @Autowired
    private AccountManager accountManager;
    @GetMapping("/")
    @ResponseBody
    public String index(){
        return accountManager.findByEmail("123@qishon.com");}

//    @GetMapping("/")
//    @ResponseBody
//    public String index() {
//        return "Hello World!!!";
//    }
//
//    @GetMapping("/welcome")
//    public String welcome(Model model) {
//        model.addAttribute("nick", "启尚科技!");
//        return "welcome";
//    }
}
